package com.qingzhu.service;

import com.qingzhu.pojo.ReceivingAddress;

import java.util.List;

public interface ReceivingAddressService {
    // 根据id查找该用户添加的所有收货地址
    public List<ReceivingAddress> findAll(int userId);
    // 添加收货地址
    public int addOneReceivingAddress(ReceivingAddress receivingAddress);
    // 修改收货地址
    public int updateOneReceivingAddress(ReceivingAddress receivingAddress);
    // 修改默认地址
    public void updateDefaultDreceivingAddress(int id,int userId);
    // 删除收货地址
    public int delOneReceivingAddress(int id);
}
